//
//  UIViewController+HUD.h
//  YBInsurance
//
//  Created by S2 on 12/25/15.
//  Copyright © 2015 YB. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void (^CallBack) (void);

@interface UIViewController (HUD)

/**
 *  @brief  会隐藏的HUD
 */
- (void)showHUDWith:(NSString *)text;

/**
 *  @brief  带菊花的HUD
 */
- (void)showLoadingHUD:(NSString *)text;

//不会隐藏的HUD
//- (void)showHUDNoHideWith:(NSString *)text;

- (void)delay:(CGFloat)duration action:(CallBack)callBack;

- (void)repeat:(CGFloat)duration times:(CGFloat)times action:(CallBack)callBack;

- (void)hideHUD;

- (void)showSystemAlertViewWithMessage:(NSString *)message withSeconds:(CGFloat)seconds;

@end
